class CreateFeeds < ActiveRecord::Migration

  def self.up
    create_table :feeds do |t|
      t.column :title, :string, :null => false
      t.column :url, :string, :null => false
      t.column :link, :string, :null => false
    end

    add_index :feeds, :url
  end

  def self.down
    drop_table :feeds
  end

end
